<?xml version="1.0" encoding="UTF-8" ?>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>${view.title}</title>
<link rel="stylesheet" href="<c:url value="/"/>css/manage.css" type="text/css" />
</head>
<body>
<div id="top_menu">
<ul>
<li><a href="<c:url value="/"/>admin/tour.html?language=zh_CN">${view.navigationView.chinese}</a></li>
<li><a href="<c:url value="/"/>admin/tour.html?language=en">${view.navigationView.english}</a></li>
</ul>
</div>
<!-- navigation -->
<div id="navigation">
<strong>${view.navigationView.position}</strong>
<ol class="navigation">
<li><a href="<c:url value="/"/>admin/manage.html">${view.navigationView.navigationManage}</a></li>
<li><a class="current" href="<c:url value="/"/>admin/tour.html">${view.navigationView.navigationTour}</a></li>
</ol>
</div>
<div id="search">
<form action="<c:url value="/"/>admin/tour.html" method="post">
<input type="text" name="subject"/>
${view.tourContentView.typeName}
<select name="typeId">
<option value="-" selected="selected">-</option>
<c:forEach items="${view.tourTypeList}" var="tourType">
<option value="${tourType.id}">${tourType.name}</option>
</c:forEach>
</select>
${view.tourContentView.category}
<select name="category">
<option value="-" selected="selected">-</option>
<c:forEach items="${view.categoryList}" var="category">
<option value="${category}">${category}</option>
</c:forEach>
</select>
<input type="submit" value="${view.globalView.query}"/>
</form>
</div>
<div id="content">
<table>
<tr>
<td class="tdp5">${view.tourContentView.id}</td>
<td class="tdp10">${view.tourContentView.typeName}</td>
<td class="tdp5">${view.tourContentView.category}</td>
<td class="tdp30">${view.tourContentView.subject}</td>
<td class="tdp5">${view.tourContentView.location}</td>
<td class="tdp5">${view.tourContentView.days}</td>
<td class="tdp10">${view.tourContentView.cost}</td>
<td class="tdp10">${view.tourContentView.isAd}</td>
<td class="tdp10">${view.tourContentView.isImage}</td>
<td class="tdp5">${view.globalView.update}</td>
<td class="tdp5">${view.globalView.delete}</td>
</tr>
<c:forEach items="${view.tourList}" var="tour">
<tr>
<td>${tour.id}</td>
<td>${tour.typeName}</td>
<td>${tour.category}</td>
<td>${tour.subject}</td>
<td>${tour.location}</td>
<td>${tour.days}</td>
<td>${tour.cost}</td>
<td>${tour.isAd}</td>
<td>${tour.isImage}</td>
<td><a href="<c:url value="/"/>admin/update_tour.html?id=${tour.id}">${view.globalView.update}</a></td>
<td><a href="<c:url value="/"/>admin/delete_tour_action.html?id=${tour.id}">${view.globalView.delete}</a></td>
</tr>
</c:forEach>
</table>
</div>
<div id="paging">
<ul class="paging">
<li><a href="<c:url value="/"/>admin/tour_paging.html?action=FIRST">${pagingView.first}</a></li>
<li><a href="<c:url value="/"/>admin/tour_paging.html?action=PREVIOUS">${pagingView.previous}</a></li>
<li><a href="<c:url value="/"/>admin/tour_paging.html?action=NEXT">${pagingView.next}</a></li>
<li><a href="<c:url value="/"/>admin/tour_paging.html?action=LAST">${pagingView.last}</a></li>
<li>
<form action="<c:url value="/"/>admin/tour_paging.html?action=TO" method="post">
<input type="submit" value="${pagingView.to}"/><input id="to" type="text" name="page"/>
</form>
</li>
<li>
<form action="<c:url value="/"/>admin/page_size_action.html" method="post">
&nbsp;&nbsp;${pagingView.size}:
<input id="pageSize" type="text" name="pageSize"/>
<input type="submit" value="${view.globalView.update}"/>
</form>
</li>
<li><a href="<c:url value="/"/>admin/insert_tour.html">${view.globalView.insert}</a></li>
</ul>
</div>
</body>
</html>